# -*- coding: utf-8 -*-
# @Time    : 2021/11/21 14:31
# @Author  : super

def ram():
	for i in range(1000):
		print("开始生成")
		yield i
		print("结束生成")

for i in ram():
	print(i)